package com.amos.teaching_aids.ui.activity;

import android.app.ProgressDialog;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.util.AttributeSet;
import android.view.View;

import com.amos.teaching_aids.R;
import com.amos.teaching_aids.TitleLayout;

/**
 * Created by Administrator on 2016/10/10 0010.
 */

public abstract class BaseActivity extends AppCompatActivity {
    protected ProgressDialog progressDialog;
    protected TitleLayout titleLayout;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getLayout());
        progressDialog = new ProgressDialog(this);
        initView();
    }
    public  abstract int getLayout();
    protected void initView(){
        titleLayout = (TitleLayout)findViewById(R.id.title);

    }

}
